package com.hison.tandainbao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hison.tandainbao.entiy.pojo.domain.TbUserInfo;
import com.hison.tandainbao.mapper.TbUserInfoMapper;
import com.hison.tandainbao.response.ResponseResult;
import com.hison.tandainbao.service.TbUserInfoService;
import org.springframework.stereotype.Service;

/**
* @author hison
* @description 针对表【tb_user_info】的数据库操作Service实现
* @createDate 2024-03-26 20:38:17
*/
@Service
public class TbUserInfoServiceImpl extends ServiceImpl<TbUserInfoMapper, TbUserInfo>
implements TbUserInfoService {

    /**
     * 根据用户的id获取用户的信息
     *
     * @param id 同上
     * @return @return {@code TbUserInfo }
     * @author $USER$
     * @date 2024/03/26
     * @see Long
     * @see TbUserInfo
     * @since version
     */
    @Override
    public TbUserInfo getAllInfo(Long id) {
        return  query().eq("user_id", id).one();
    }
}
